package com.KKd.pojo.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author 14587
 * @date 2021/7/19 12:55
 */
@Data
public class NoteDTO {
    @JsonProperty("id")
    private Integer id;

    @JsonProperty("userId")
    private Integer userId;

    @JsonProperty("username")
    private String username;

    @JsonProperty("rootableId")
    private Integer rootableId;

    @JsonProperty("rootableType")
    private String  rootableType;

    @JsonProperty("linkableId")
    private Integer linkableId;

    @JsonProperty("linkableType")
    private String  linkableType;

    @JsonProperty("parentId")
    private Integer parentId;

    @JsonProperty("agreeCount")
    private Integer agreeCount;

    @JsonProperty("agreeUsernames")
    private String agreeUsernames;

    @JsonProperty("sticked")
    private Boolean sticked;

    @JsonProperty("content")
    private String content;

    @JsonProperty("createdAt")
    private Date createdAt;

    @JsonProperty("updatedAt")
    private Date updatedAt;
}
